package entity;


/**
 * <p>响应结果实体类</p>
 * @author XieTao
 * @since 2020-09-08
 */
public class Result<T> {
    /**
     *<p>是否成功</p>
     */
    private boolean isSuccess;
    /**
     *<p>响应码</p>
     */
    private String statusCode;
    /**
     *<p>响应信息</p>
     */
    private String message;
    /**
     *<p>用户提示信息</p>
     */
    private String tips;
    /**
     *<p>响应数据</p>
     */
    private T data;

    public Result(boolean isSuccess, String statusCode, String message, String tips) {
        this.isSuccess = isSuccess;
        this.statusCode = statusCode;
        this.message = message;
        this.tips = tips;
    }

    public Result(boolean isSuccess, String statusCode, String message, String tips, T data) {
        this.isSuccess = isSuccess;
        this.statusCode = statusCode;
        this.message = message;
        this.tips = tips;
        this.data = data;
    }
}
